package com.dcd.service;

import com.dcd.pojo.Car_model;
import com.dcd.pojo.Car_model_images;
import com.dcd.pojo.Car_model_images_type;
import com.dcd.service.impl.Car_model_ImagesServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "donchedi-provider9091",fallback = Car_model_ImagesServiceImpl.class,contextId = "carmodelimages")
public interface Car_model_ImagesService {

    /**
     * 查询所有大图类型名称
     * @return
     */
    @RequestMapping("/select_car_model_imgType")
     List<Car_model_images_type> select_car_model_imgType();

    /**
     * 根据条件查询相关实拍大图 相关车系
     * @param car_model_images_type_id  //外观，内饰等id
     * @param brand_id     //品牌id
     * @param car_series_id   //车系id
     * @param car_model_id   //车型id
     * @param specific_color_id   //颜色id
     * @return
     */
   @RequestMapping("/select_car_model_imgById")
     List<Car_model> select_car_model_imgById(
            @RequestParam int brand_id,
            @RequestParam int car_series_id,
            @RequestParam int car_model_id,
            @RequestParam int car_model_images_type_id,
            @RequestParam int specific_color_id
    );

    /**
     * 查询所有颜色
     * @return
     */
    @RequestMapping("/select_specific_color")
     List<Car_model_images> select_specific_color(@RequestParam int car_model_images_type_id,@RequestParam int car_model_id);
    

}
